package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class ExitPopup implements Parcelable {

    /**
     * 图片地址
     */
    @SerializedName("image")
    private String imageUrl;

    /**
     * 跳转网页地址
     */
    @SerializedName("jump_url")
    private String jumpUrl;

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getJumpUrl() {
        return jumpUrl;
    }

    public void setJumpUrl(String jumpUrl) {
        this.jumpUrl = jumpUrl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.imageUrl);
        dest.writeString(this.jumpUrl);
    }

    public ExitPopup() {
    }

    protected ExitPopup(Parcel in) {
        this.imageUrl = in.readString();
        this.jumpUrl = in.readString();
    }

    public static final Creator<ExitPopup> CREATOR = new Creator<ExitPopup>() {
        @Override
        public ExitPopup createFromParcel(Parcel source) {
            return new ExitPopup(source);
        }

        @Override
        public ExitPopup[] newArray(int size) {
            return new ExitPopup[size];
        }
    };
}
